package cn.jiyun.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.io.Serializable;
import java.util.List;

@AllArgsConstructor
@NoArgsConstructor
@ToString
@Data
@TableName("product")
public class Product implements Serializable {
    @TableId(value = "id",type = IdType.AUTO)
    private  Integer id;
    @TableField("name")
    private  String name;
    @TableField("url")
    private  String url;
    @TableField("paixu")
    private  Integer paixu;
    @TableField("status")
    private  Integer status;
    @TableField("pid")
    private  Integer pid;
    @TableField("urlda")
    private  String urlda;
    @TableField("del")
    private  Integer del;
    @TableField(exist = false)
    private List<Product> children;
}
